﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <script src="~/scripts/jquery-3.5.1.js"></script>
    <link rel="stylesheet" href="~/css/x-admin.css" media="all">
    <script src="~/lib/layui/layui.js" charset="utf-8"></script>
    <script src="~/js/x-admin.js"></script>

</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header header header-demo">
            <div class="layui-main">
                <a class="logo" href="./index.html">
                    后台管理
                </a>
                <ul class="layui-nav" lay-filter="">
                    <li class="layui-nav-item"><img src="~/@ViewBag.UserImage" class="layui-circle" style="border: 2px solid #A9B7B7;" width="75" height="50" alt=""></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;">admin</a>
                        <dl class="layui-nav-child">
                            <!-- 二级菜单 -->
                            <dd><a href="javascript:;" id="PersonalData" onclick="PersonalData()">个人资料</a></dd>
                            <dd><a href="javascript:;" onclick="UpdateUserPwd()">修改密码</a></dd>
                            <dd><a href="/Login/SignOut">退出</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item x-index"><a href="/Home/Index">前台首页</a></li>
                </ul>
            </div>
        </div>
        <div class="layui-side layui-bg-black x-side">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree site-demo-nav" lay-filter="side">
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe612;</i><cite>用户管理</cite>
                        </a>
                        <dl class="layui-nav-child">

                            <dd class="">
                                <a href="javascript:;" _href="/Home/PersonalData">
                                    <cite>个人信息</cite>
                                </a>
                            </dd>
                            <dd class="">
                                <a href="javascript:;" _href="/Home/UpdateUserPwdView">
                                    <cite>修改密码</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe614;</i><cite>商品管理</cite>
                        </a>
                        <dl class="layui-nav-child">

                            <dd class="">
                                <a href="javascript:;" _href="/Home/ShopView">
                                    <cite>商品列表</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe636;</i><cite>订单管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/Order/Index">
                                    <cite>订单列表</cite>
                                </a>
                            </dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe621;</i><cite>分类管理</cite>
                        </a>
                        <dl class="layui-nav-child">

                            <dd class="">
                                <a href="javascript:;" _href="/FenLei/Index">
                                    <cite>类别列表</cite>
                                </a>
                            </dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe630;</i><cite>相册管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/ShangPinImgGuanli/Index">
                                    <cite>相册列表</cite>
                                </a>
                            </dd>
                            @*<dd class="">
                                    <a href="javascript:;" _href="/XiangCe/GuanLi">
                                        <cite>图片管理</cite>
                                    </a>
                                </dd>*@
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe629;</i><cite>推荐管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/Recommend/GetRecommendView">
                                    <cite>推荐列表</cite>
                                </a>
                            </dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe631;</i><cite>推荐位置管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/Recommend/IndexOne">
                                    <cite>位置列表</cite>
                                </a>
                            </dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe632;</i><cite>导购（促销）</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/DaoGou/Index">
                                    <cite>促销列表</cite>
                                </a>
                            </dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe611;</i><cite>留言管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/Message/Index">
                                    <cite>留言列表</cite>
                                </a>
                            </dd>

                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="javascript:;" href="javascript:;">
                            <i class="layui-icon" style="top: 3px;">&#xe611;</i><cite>评价管理</cite>
                        </a>
                        <dl class="layui-nav-child">
                            <dd class="">
                                <a href="javascript:;" _href="/PingJia/Index">
                                    <cite>评价列表</cite>
                                </a>
                            </dd>

                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div class="layui-tab layui-tab-card site-demo-title x-main" lay-filter="x-tab" lay-allowclose="true">
            <div class="x-slide_left"></div>
            <ul class="layui-tab-title">
                <li class="layui-this">
                    我的桌面
                    <i class="layui-icon layui-unselect layui-tab-close">ဆ</i>
                </li>
            </ul>
            <div class="layui-tab-content site-demo site-demo-body">
                <div class="layui-tab-item layui-show">
                    <iframe frameborder="0" src="/Home/ShopView" class="x-iframe"></iframe>
                </div>
            </div>
        </div>
        <div class="site-mobile-shade">
        </div>
    </div>
    @*<script src="~/lib/layui-v2.5.6/layui/layui.js"></script>*@
    @*<script src="layer.js"></script>*@
    <script>

        layui.use('form', function () {
            var form = layui.form;
            //var $ = layui.$;
            //$("#PersonalData").click(function () {
            //    console.log(123);
            //});


        });
        function PersonalData() {
            //console.log(123);
            layer.open({
                type: 2,
                content: '/Home/PersonalData?id=' + @ViewBag.UserId,
                area: ['500px', '500px']
            });
        }
        function UpdateUserPwd() {
            //console.log(123);
            layer.open({
                type: 2,
                content: '/Home/UpdateUserPwdView',
                area: ['500px', '500px']
            });
        }
    </script>
</body>
</html>
